<!-- PAGE HEADER -->
                <div class="page-header-wrapper">
                
                		<section id="page-header">
                        		<div>
                                	<h1>NEWS</h1>
                                </div>
                        </section>
                
                </div>
                <!-- PAGE HEADER -->
                
                
                
                <!-- CONTENT -->
                <div class="wrapper">
                
                		<div class="content-left-wrapper">
                        		
                                <!-- CONTENT -->
                        		<section id="content">
                                            <?php foreach($this->news as $arr){ ?>
	                        			<article>
	                        					<h4 class="post-title"><a href="single.html"><?php echo $arr['name']; ?></a></h4>
	                        			        <p class="post-meta"><span><?php echo $arr['date'];?></span></p>
	                        			        <div class="post-content">
                                                		
	                        			        		
                                                                    <?php if ($arr['image']){  echo "<a class=\"alignleft\" href=" . $this->url(array(
                                                                                    'controller' => 'news',
                                                                                    'action' => 'news',
                                                                                    'id' => $arr['id']))."><img style='width: 200px; height: 120px;' src=\"/uploads/news/images/".$arr['image']."\" alt=\"\" /></a>"; } ?>
                                                              <p><?php echo substr($arr['text'], 0, 400); ?></p>
	                        			        		
	                        					</div>
                                                <a href="single.html" class="read-more"><?php echo "<a href=" . $this->url(array(
                                                                                             'controller' => 'news',
                                                                                             'action' => 'news',
                                                                                             'id' => $arr['id'])) . ">read more</a></article>";?></a>
	                        			</article>
                                            <?php }?>
                                            <?php echo $this->paginationControl($this->news, 'Sliding', 'partials/paginator.phtml'); ?>
	                        			
	                        			
                        		</section>
                                <!-- CONTENT -->
                        
                        </div>
                		
                        <div class="content-right-wrapper">
                        
                        		<!-- SEARCH -->
                                <div class="search-wrapper">
                                		<form action="#" method="post">
                                        	<fieldset>
                                        		<input type="text" class="field search-field" value="Search..." />
                                                <input type="submit" class="search-btn" value="" />
                                            </fieldset>
                                        </form>
                                </div>
                                <!-- SEARCH -->
                                
                                <!-- SIDEBAR -->
                                <aside id="sidebar">
                                		<div>
                                        		<h4>CATEGORIES</h4>
                                                <ul>
                                                	<li><a href="#">Webdesign</a><span>(500)</span></li>
                                                	<li><a href="#">Architecture</a><span>(500)</span></li>
                                                	<li><a href="#">Technology</a><span>(500)</span></li>
                                                	<li><a href="#">Goals &amp; Productivity</a><span>(500)</span></li>
                                                	<li><a href="#">Inspiration</a><span>(500)</span></li>
                                                </ul>
                                        </div>
                                		
                                        <div>
                                        		<h4>FLICKR WIDGET</h4>
                                                <div class="flickr">
                                                		<script type="text/javascript" src="../www.flickr.com/badge_code_v2.gne@count=6&source=group&group=675729_2540N22&display=random&size=s&display=latest"></script>
                                        		</div>
                                        </div>
                                </aside>
                                <!-- SIDEBAR -->
                        
                        </div>
                
                </div>
                <!-- CONTENT -->
                
                


<!-- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<?php /*
    < foreach($this->news as $arr){ ?>

		echo "$arr[name]</h4><br />"; ?>
         
  
        
        if ($arr['small_img']){
        echo "<a href=" . $this->url(array(
                                    'controller' => 'news',
                                    'id' => $arr['id']))."><img src=\"/uploads/news/small/".$arr['small_img']."\" alt=\"\" /></a>"; ?>
      
      </div>
       
        }
        //выводим 200 символов текста
        echo '<div class="post-content"><p>'.substr($arr['text'], 0, 200)  ."</p></div>";
        echo '<p class="post-meta"><span>'; 
		echo "$arr[date]</span></p><br />";
        echo "<a href=" . $this->url(array(
                                'controller' => 'news',
                                'action' => 'news',
                                'id' => $arr['id'])) . ">read more</a></article>";
      
        
    }
   

    echo $this->paginationControl($this->news, 'Sliding', 'partials/paginator.phtml');
*/
    ?>


